<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
session_start();
class Getlang extends CI_Controller {
	
	function __construct()
	    {
		parent::__construct();
                $this->load->helper(array('url','form'));
                $this->load->library('form_validation');
                $this->load->library('session');
                $this->load->library('lang');
                $this->load->library('user_agent');
            }
            function index(){
                if($this->agent->accept_lang('fr')){
                    echo "FR";
                }elseif ($this->agent->accept_lang('en')) {
                    echo "EN";
                    }
                
            }
}